load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

package(default_visibility = ["//:__subpackages__"])  # keep

go_library(
    name = "go_default_library",
    srcs = [
        "hkdf_hpke_kdf.go",
        "hpke_kdf.go",
        "hpke_kem.go",
        "hpke_util.go",
        "internal.go",
        "x25519_hpke_kem.go",
    ],
    importpath = "github.com/google/tink/go/hybrid/internal",
    deps = [
        "//subtle:go_default_library",
        "@org_golang_x_crypto//hkdf:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = [
        "hkdf_hpke_kdf_test.go",
        "hpke_test.go",
        "x25519_hpke_kem_test.go",
    ],
    data = [":testdata"],
    embed = [":go_default_library"],
    deps = [
        "//subtle:go_default_library",
        "//testutil:go_default_library",
    ],
)

filegroup(
    name = "testdata",
    srcs = ["testdata/boringssl_hpke_test_vectors.json"],
)
